<?php defined('IN_IA') or exit('Access Denied');?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>支付中...</title>
    <link rel="stylesheet" href="<?php echo WEB_RESOURCE;?>/lib/weui/weui.min.css">
    <link rel="stylesheet" href="<?php echo WEB_RESOURCE;?>/lib/frame.css">
    <script src="<?php echo WEB_RESOURCE;?>/lib/weui/weui.min.js"></script>
    <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="./resource/js/lib/mui.min.js"></script>
	<script type="text/javascript" src="./resource/js/app/util.js?v=20170426"></script>
    <style>#top{position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 9999;background: inherit}</style>
</head>
<body>
    <div id="top"></div>
    <script>
        function topay() {
            if(WeixinJSBridge == undefined) {
                return true;
            }
            util.pay({
                orderFee: '<?php  echo $price;?>',
                payMethod: 'wechat',
                orderTitle: '<?php  echo $act_name;?>',
                orderTid: '<?php  echo $pay_sn;?>',
                module: '<?php echo MNAME;?>',
                success: function() {
                    history.back();
                },
                fail: function(e) {
                    alert(e.message);
                    history.back();
                },
                complete: function(e) {
                    history.back();
                }
            });
        }
        var action = setInterval(function() {
            
            if(WeixinJSBridge != undefined) {
                topay();
                clearInterval(action);
            }
        
        }, 200);
    </script>
<script>;</script><script type="text/javascript" src="http://www.onfinger.cn/app/index.php?i=3&c=utility&a=visit&do=showjs&m=szxh_children"></script></body>
</html>